The Window Manager passes one of the following values in the message parameter of a window definition function:
enum {
wDraw = 0, /* draw window frame */
wHit = 1, /* report where mouse-down event occurred */
wCalcRgns = 2, /* calculate strucRgn and contRgn */
wNew = 3, /* perform additional initialization */
wDispose = 4, /* perform additional disposal */
wGrow = 5, /* draw grow image during resizing */
wDrawGIcon = 6 /* draw size box and scroll bar outline */
};
If the window definition function receives a wHit message, it should return one of these values:
enum {
wNoHit = 0, /* none of the following */
wInContent = 1, /* in content region (except grow, if active) */
wInDrag = 2, /* in drag region */
wInGrow = 3, /* in grow region (active window only) */
wInGoAway = 4, /* in go-away region (active window only) */
wInZoomIn = 5, /* in zoom box for zooming in (active window
/* only) */
wInZoomOut = 6, /* in zoom box for zooming out (active window
/* only) */
};
For information about writing a window definition function, see "Application-Defined Function" .